package net.zjitc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.zjitc.entity.Workplace;
import com.baomidou.mybatisplus.extension.service.IService;
import net.zjitc.exception.WorkPlaceException;

import java.util.List;

/**
 * @auther 郭梦婷
 * @create 2022-05-17 13:22:12
 * @describe 服务类
 */
public interface IWorkplaceService extends IService<Workplace> {

    List<Workplace> getListWorkplace(Integer type) throws WorkPlaceException;

    Page<Workplace> getPageWorkplace(Integer type, Integer pagenum, Integer pagesize) throws WorkPlaceException;

    Workplace addLevel(Workplace workplace);

    Workplace findById(Integer id);

    Workplace updateByid(Workplace workplace);

    Integer deleteById(Integer id);
}
